package com.zt.bus.order.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 退款手续费 Created by Administrator on 2017/6/1.
 */
public class OrderBackRefund {

    private String phone;
    private String name;
    private List<OrderBackRefundDetail> details = new ArrayList<>();

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public double getBackFee() {
        double backFee = 0;
        for (OrderBackRefundDetail detail : details) {
            backFee += detail.getRefundFee();
        }
        return backFee;
    }

    public List<OrderBackRefundDetail> getDetails() {
        return details;
    }

    public void setDetails(List<OrderBackRefundDetail> details) {
        this.details = details;
    }

    public class OrderBackRefundDetail {
        private String date;
        private String refundId;// 退款方案ID
        private String refundName;// 退款方案名称
        private String refundDetailId;// 退款方案明细ID
        private double refundRate;// 费率
        private double refundFee;// 单个手续费

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getRefundId() {
            return refundId;
        }

        public void setRefundId(String refundId) {
            this.refundId = refundId;
        }

        public String getRefundName() {
            return refundName;
        }

        public void setRefundName(String refundName) {
            this.refundName = refundName;
        }

        public String getRefundDetailId() {
            return refundDetailId;
        }

        public void setRefundDetailId(String refundDetailId) {
            this.refundDetailId = refundDetailId;
        }

        public double getRefundRate() {
            return refundRate;
        }

        public void setRefundRate(double refundRate) {
            this.refundRate = refundRate;
        }

        public double getRefundFee() {
            return refundFee;
        }

        public void setRefundFee(double refundFee) {
            this.refundFee = refundFee;
        }
    }
}
